package com.fzrskj.cloud.free.thridparty.pay.wechat;

import com.fzrskj.cloud.free.user.utils.UserLogUtils;
import com.winiis.component.pay.wechat.service.WechatPayLog;

/**
 * WechatPayLogImpl.
 *
 * @author zj.
 *         Created on 2018/12/29 0029.
 */
public class WechatPayLogImpl implements WechatPayLog {
    /**
     * 通知日志记录.
     * @param xml 微信通知的报文.
     */
    @Override
    public void notifyLog(String xml) {
        UserLogUtils.addLog(this, 1000, "微信支付结果通知：" + xml);
    }

    /**
     * 订单查询结果日志.
     * @param xml 订单查询报文.
     */
    @Override
    public void queryOrderLog(String xml) {
        UserLogUtils.addLog(this, 1000, "微信支付订单查询结果：" + xml);
    }

    /**
     * 下单结果日志.
     * @param xml 下单结果报文.
     */
    @Override
    public void makeOrderLog(String xml) {
        UserLogUtils.addLog(this, 1000, "微信支付下单结果：" + xml);
    }
}
